#ifndef QUADTREEHOJASCOMP_H_
#define QUADTREEHOJASCOMP_H_
#include "QuadTreeHojas.h"
const int HOJASC = 2;
using namespace std;

class QuadTreeHojasComp: public QuadTreeHojas {
private:
	bool comprimir(vector<int> & );
	void insertarordenado(vector<int> &, int);
	vector<int> cargardatos();
	unsigned char  buscarchar(vector<int>,int );
	unsigned short buscarshort(vector<int> &,int );
	vector<unsigned char> reacomodarchar(vector<int> &);
	vector<unsigned short> reacomodarshort(vector< int > &);
	int buscarbin(vector<int> &,int , int , int);
	void guardarcomprimido(vector<int> & ,ofstream &);
	void recuperarcomprimido(ifstream &,int);
	void recuperarchar(ifstream &,int);
	void recuperarshort(ifstream &,int);
	void recuperardatos(ifstream &);
public:
      QuadTreeHojasComp();
	~QuadTreeHojasComp();
	void guardar(ofstream &);
	void recuperar(ifstream &);
	
};

#endif
